<?php
require_once dirname(__FILE__) . '/common/common.inc.php';

if (isset($_COOKIE[USER])) {
  $_SESSION[USER] = json_decode($_COOKIE[USER]);
}

$template = MiscUtils::getParam('t', 'signin');
$options = MiscUtils::getParam('opts', json_encode(array()));

$smarty->assign('user', json_encode(array()));
$smarty->assign('date', timee());
$smarty->assign('options', $options);
$smarty->assign('data', json_encode(array()));
$smarty->assign('template', $template);
$smarty->display('gui/base.tpl');
?>